﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using FluentValidation;
using CashFlow.Web.Areas.SystemManage.Models.Shop;

namespace CashFlow.Web.Areas.SystemManage.Validator.Shop
{
    public class QueryShopUserModelValidator
        : AbstractValidator<QueryShopUserModel>
    {
        public QueryShopUserModelValidator()
        {
            CascadeMode = CascadeMode.Stop;
            RuleFor(x => x.ShopManagerUserId)
                .Must(x => CommonValidator.IsShopManagerUserIdValid(x))
                .WithMessage("非法ShopManagerUserId");
        }
    }
}